package com.bkhc.product.strategy;

import com.bkhc.product.entity.BrandGoodPrice;
import com.bkhc.product.entity.PriceRule;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.math.BigDecimal;

@Service
public class RatioPriceStrategy implements PriceStrategy{
    @Override
    public void calculatePrice(PriceRule dataList, BrandGoodPrice priceModeList){

    }

    private BigDecimal calculatePrice(BigDecimal price, double priceRatio){
        return price.multiply(new BigDecimal(priceRatio));
    }
}
